package cn.ctodb.wxmp.repository;

import cn.ctodb.wxmp.domain.Mp;
import cn.ctodb.wxmp.domain.Token;
import cn.ctodb.wxmp.domain.enumeration.TokenType;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Spring Data JPA repository for the Token entity.
 */
@SuppressWarnings("unused")
public interface TokenRepository extends JpaRepository<Token,Long> {

    Token findOneByMpAndTokenType(Mp mp, TokenType global);
}
